﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Framework.Manager
{
    /// <summary>Manager集合，用于集中持有所有Manger</summary>
    public static class ManagerCollection
    {
        /// <summary>初始化管理类</summary>
        public static void InitManager()
        {
            AudioManager.Init();
            DataManager.Init();
            EventManager.Init();
            LoadManager.Init();
            NetworkManager.Init();
            ResourceManager.Init();
            SceneManager.Init();
            UIManager.Init();
        }

        /// <summary>音效管理类</summary>
        public static AudioManager AudioManager
        {
            get { return AudioManager.Instance; }
        }

        /// <summary>数据管理类</summary>
        public static DataManager DataManager
        {
            get { return DataManager.Instance; }
        }

        /// <summary>事件管理类</summary>
        public static EventManager EventManager
        {
            get { return EventManager.Instance; }
        }

        /// <summary>加载管理类</summary>
        public static LoadManager LoadManager
        {
            get { return LoadManager.Instance; }
        }

        /// <summary>网络管理类</summary>
        public static NetworkManager NetworkManager
        {
            get { return NetworkManager.Instance; }
        }

        /// <summary>资源管理类</summary>
        public static ResourceManager ResourceManager
        {
            get { return ResourceManager.Instance; }
        }

        /// <summary>场景管理类</summary>
        public static SceneManager SceneManager
        {
            get { return SceneManager.Instance; }
        }

        /// <summary>UI管理类</summary>
        public static UIManager UIManager
        {
            get { return UIManager.Instance; }
        }
    }
}